package com.pp.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张子艺
 * @since 2019-03-06
 */
public class PpUser extends Model<PpUser> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    /**
     * openID
     */
    @TableField("open_id")
    private String openId;

    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;

    /**
     * 头像
     */
    @TableField("image")
    private String image;

    /**
     * 佣金
     */
    @TableField("commission")
    private Integer commission;

    /**
     * 推荐次数
     */
    @TableField("recommend_count")
    private Integer recommendCount;

    /**
     * 余量
     */
    @TableField("allowance")
    private String allowance;

    /**
     * vip类型 1  2   3 星星
     */
    @TableField("vip")
    private Integer vip;

    /**
     * 卡号
     */
    @TableField("card_num")
    private Long cardNum;

    /**
     * 奖励金额
     */
    @TableField("give_free")
    private String giveFree;

    public String getGiveFree() {
        return giveFree;
    }

    public void setGiveFree(String giveFree) {
        this.giveFree = giveFree;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
    public Integer getCommission() {
        return commission;
    }

    public void setCommission(Integer commission) {
        this.commission = commission;
    }
    public Integer getRecommendCount() {
        return recommendCount;
    }

    public void setRecommendCount(Integer recommendCount) {
        this.recommendCount = recommendCount;
    }

    public String getAllowance() {
        return allowance;
    }

    public void setAllowance(String allowance) {
        this.allowance = allowance;
    }

    public Integer getVip() {
        return vip;
    }

    public void setVip(Integer vip) {
        this.vip = vip;
    }

    public Long getCardNum() {
        return cardNum;
    }

    public void setCardNum(Long cardNum) {
        this.cardNum = cardNum;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PpUser{" +
        "id=" + id +
        ", openId=" + openId +
        ", nickName=" + nickName +
        ", image=" + image +
        ", commission=" + commission +
        ", recommendCount=" + recommendCount +
        ", allowance=" + allowance +
        ", vip=" + vip +
        ", cardNum=" + cardNum +
        "}";
    }
}
